package com.life.wd.dto;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class GoodsAddRequest {
    @NotNull(message = "标题不能为空")
    private String title;
    
    private String desc;
    private String content;
    
    private MultipartFile imageFile; // 商品图片
    
    @NotNull(message = "价格不能为空")
    private BigDecimal price;
    
    @NotNull(message = "关联产品ID不能为空")
    private Long goodsId; // 关联的产品ID
}